package com.boot.multi.source.mapper.producer;

import com.boot.multi.source.domain.producer.ProducerUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 刘志强
 * @date 2020/11/27 14:23
 */
@Mapper
public interface ProducerUserMapper {

    /**
     * 获取生产库用户
     *
     * @param id
     * @return
     */
    ProducerUser getProducerUserById(@Param("id") Long id);

    /**
     * 添加生产者用户
     * @param producerUser
     * @returnint
     */
     int addProducerUser(ProducerUser producerUser);
}
